|
|
Using Pre-Roll To Find The Perfect Wave
Overview
When placing a 3D Flag in your scene, you will likely want the flag to look a certain way so that it looks good within the context of the rest of the graphics, images, and movies in your environment.
The 3D Flag simulation always starts with the flag in a default state. That is, before wind , gravity, or anything else can change the look of the flag, it begins upright and flat, as shown here.
The reason our "Quick Start.aep" project has a flag that doesn't look like this is because the Pre-Roll value is set to 4 seconds. This means that the flag simulation runs for 4 seconds before our first frame is shown.
A 4 second pre-roll may satisfy your needs, but you'll most likely want to choose a Pre-Roll value that makes your flag look right from the very first frame.
Starting With No Pre-Roll
Let's see what happens to our flag if there were no pre-roll. That is, let's see how wind and gravity affect the flag from its default position.
- Open the "Quick Start.aep" project.
- In the Effect Controls window, locate the Pre-Roll parameter and set it to 0.

Notice that the flag is now a rectangle, with no forces yet applied to it. - View the animated flag within the 3D Flag Options window by clicking on the 3D Flag logo in the Effect Controls window.

Notice how the flag begins to drop due to gravity, but then the wind forces it to the right. After a few seconds, the flag settles into a nice undulation. - While still in the 3D Flag Options window, click the Restart Simulation button.

This will restart the flag animation from the first frame after the pre-rolling is done. That is, if Pre-Roll were set to 4 seconds, the first frame of the animation playback would be just after 4 pre-rolled seconds.
In our current example, Pre-Roll is 0 seconds, so restarting the animation puts the flag back in its default position. You can watch the wind and gravity make the flag undulate again.
Finding A Good Pre-Roll Value
By setting Pre-Roll to 0, you can watch the animation and find your ideal starting frame.
To do this, you'll need to learn a little more about the 3D Flag Options window. There are a few keyboard commands that you can use to control your flag animation.
- The Spacebar will pause and unpause the playback.
- If the animation is paused, the Left Arrow key will make the animation go back one frame.
- If the animation is paused, the Right Arrow key will make the animation go forward one frame.
Using these three keys and the Restart Simulation button, you can find a good Pre-Roll value. Let's say our goal is to find a Pre-Roll value such that the flag is just starting its first nice undulation near the start of the animation.
NOTE: This technique for choosing a Pre-Roll value only works if the Pre-Roll parameter in the Effect Controls window is set to 0.0 before opening the 3D Flag Options window.
- Watch the animation from the beginning to get an idea of where you'd like to pause the animation. Press the Restart Simulation button.
Notice that the flag begins to undulate nicely between 3 and 4 seconds into the animation. You can see how far into the animation you are by looking at the Time field at the top of the 3D Flag Options window.

- Let's pause at around the 3 second mark. Click the Restart Simulation button.
- When the Time field gets to 3:00 seconds, press the spacebar to pause the animation.
- Using the left and right arrow keys, make the Time field show 3:17. Your animation should look something like this.

That looks like a good first frame.
To the right of the timecode 3:17, you'll see a value in seconds, 3.57. This is the number you'll use for Pre-Roll, since Pre-Roll is a value in seconds (not a timecode).
Setting Your Pre-Roll Value
- Click the OK button to exit the 3D Flag Options window.
- In the Effect Controls window (ECW), set the Pre-Roll value to 3.57.
- Now that you've set your Pre-Roll value, the "Flag" Comp window should look very similar to the 3:17 frame in the 3D Flag Options window.
You've received a brief introduction to the 3D Flag Options window, it's time to become more familiar with it. The next chapter, Changing Flag Attributes, will demonstrate how to use the 3D Flag Options window to customize many attributes of your flag. The next chapter will show you that not all flags have to look the same.
|